package com.notebook.controller.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/cacheTest")
public class TestController {
	@Autowired
	private ICacheTest cache;
	@RequestMapping("/test")
	public @ResponseBody String test(@RequestParam String key){
		String res=cache.saveObj(key);
		return res;
	}
}
